'use strict';

/**
 * Created by twer on 15/3/29.
 */
angular.module('personaldocument')
    .factory('ProfilePhotoService', ['$resource', 'RootPathConstant', function ($resource, RootPathConstant) {
        return $resource(RootPathConstant + '/space/:userId/profile/photo', {}, {
            edit: {method: 'PUT'},
            query: {method: 'GET', isArray: false}
        });
    }])

    .factory('ProfileInfoService', ['$resource', 'RootPathConstant', function ($resource, RootPathConstant) {
        return $resource(RootPathConstant + '/space/:userId/profile', {}, {
            edit: {method: 'PUT'},
            query: {method: 'GET', isArray: false}
        });
    }]);
